<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0" />
    <title><%= htmlWebpackPlugin.options.title %></title>
    <link rel="icon" href="/favicon.ico" />

    <% if (!!htmlWebpackPlugin.options.v5options.css && !!htmlWebpackPlugin.options.v5options.css.length)
        { %> <% htmlWebpackPlugin.options.v5options.css.forEach(function(item){%>
        <link href="<%= item %>" rel="stylesheet" />
        <% }) %> <% } %> 
    
  </head>
  <body>
    <% if (!!htmlWebpackPlugin.options.v5options.js &&
    !!htmlWebpackPlugin.options.v5options.js.length) { %> <%
    htmlWebpackPlugin.options.v5options.js.forEach(function(item){%>
    <script src="<%= item %>" type="text/javascript"></script>
    <% }) %> <% } %>
    <!-- 自定义html模版 -->
    <div id="app"></div>
  </body>
  <script type="text/javascript">
    window.addEventListener('load', function () {
        var guidePage = window._staticPath + '/common/page-guide/index.js' + window._staticSuffix;
        var script = document.createElement('script');
        script.type = 'text/javascript';
        script.async = false;
        script.defer = false;
        script.src = guidePage;
        document.getElementsByTagName('head')[0].appendChild(script);
  })

  </script>
  
</html>
